/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package server;

import connection.Channel;

/**
 *
 * @author rmb
 */
public class Server {
    
    private static Channel channel;
    
    public static void main(String[] args) {
        
        initServer();
        
    }
     
     
    
    public static void initServer() {
        channel = new Channel(true);
        channel.start();
    }
    
    public void turn_server_off() {
        for (Object o : channel.getClientes())
            channel.deleteCon((String) o);
        
        channel.setStop();
        System.out.println("Server Stopped");
    }

    public static Channel getChannel() {
        return channel;
    }
    
    
}
